package com.unknowpupil.sell.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.unknowpupil.sell.domain.OrderDetail;
import com.unknowpupil.sell.utils.serializer.Date2LongSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Classname: OrderDTO
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2019/12/30 1:17
 * @Description:
 * @Version: 1.0
 */
@Data
//@JsonInclude(JsonInclude.Include.NON_NULL)
public class OrderDTO {
    /**
     * 订单id
     */

    @ApiModelProperty(value = "订单id")
    private String orderId;
    /**
     * 买家名字
     */

    @ApiModelProperty(value = "买家名字")
    private String buyerName;
    /**
     * 买家电话
     */

    @ApiModelProperty(value = "买家电话")
    private String buyerPhone;
    /**
     * 买家地址
     */

    @ApiModelProperty(value = "买家地址")
    private String buyerAddress;
    /**
     * 买家微信id
     */

    @ApiModelProperty(value = "买家微信id")
    private String buyerOpenid;
    /**
     * 订单总金额
     */

    @ApiModelProperty(value = "订单总金额")
    private BigDecimal orderAmount;
    /**
     * 订单状态默认0新订单
     */

    @ApiModelProperty(value = "订单状态默认0新订单")
    private Integer orderStatus;
    /**
     * 支付状态默认0未支付
     */

    @ApiModelProperty(value = "支付状态默认0未支付")
    private Integer payStatus;
    @JsonSerialize(using = Date2LongSerializer.class)
    private Date created;
    @JsonSerialize(using = Date2LongSerializer.class)
    private Date updated;

    List<OrderDetail> orderDetailList;
}
